Imports pixolut.BizBlox
Imports NUnit.Framework

<TestFixture()> Public Class DOExceptionTest
    Public Sub New()
        MyBase.New()
    End Sub

    <TestFixtureSetUp()> Public Sub GlobalInit()
        'do nothing...
    End Sub

    <TestFixtureTearDown()> Public Sub GlobalDestruct()
        'do nothing...
    End Sub

    <Test()> Public Sub testExceptionVerbosity()
        Try
            Throw New DOException("test", New Exception("Chicken"))
        Catch ex As Exception
            Console.WriteLine(ex.ToString())
        End Try
    End Sub

    <Test()> Public Sub testSQLExceptionVerbosity()
        Try
            Throw New DOException("test", "This is some sensitive SQL right here baby...", New Exception("Chicken"))
        Catch ex As Exception
            Console.WriteLine(ex.ToString())
        End Try
    End Sub


End Class

